exports._config = {
    "type"          : "clustered",
    //"replaceConsole": true,   //替换console.log  //2018.4.18 发现idc文件没有此参数，暂时注释
    "appenders"     : [
        {
            "type"      : "file",
            "filename"  : "cpsadmin-pm2-log/app.log",
            "maxLogSize": 2048000,
            "numBackups": 3
        }, {
            "type"    : "logLevelFilter",
            "level"   : "ERROR",
            "appender": {
                "type"    : "file",
                "filename": "cpsadmin-pm2-log/errors.log"
            }
        }, {
            "type"                : 'dateFile',
            "filename"            : 'cpsadmin-pm2-log/log.log',
            "pattern"             : ".yyyy-MM-dd",
            "maxLogSize"          : 1024,
            "alwaysIncludePattern": true,
            "backups"             : 4
        }
    ]
}

//local
exports._local_config = {
    //"replaceConsole": true,   //替换console.log
    "appenders"     : [
        {
            "type"      : "file",
            "filename"  : "cpsadmin-pm2-log/app.log",
            "maxLogSize": 2048000,
            "numBackups": 3
        },
        {
            "type"    : "logLevelFilter",
            "level"   : "ERROR",
            "appender": {
                "type"    : "file",
                "filename": "cpsadmin-pm2-log/errors.log"
            }
        },
        {
            "type"                : 'dateFile',
            "filename"            : 'cpsadmin-pm2-log/log.log',
            "pattern"             : ".yyyy-MM-dd",
            "maxLogSize"          : 1024,
            "alwaysIncludePattern": true,
            "backups"             : 4
        },
       /* {
            "type"                : 'console'
        }*/
    ]
}

//master
exports._master_config = {
    //"replaceConsole": true,   //替换console.log
    "appenders"     : [
        {
            "type"      : "file",
            "filename"  : "cpsadmin-pm2-log/app.log",
            "maxLogSize": 2048000,
            "numBackups": 3
        }, {
            "type"    : "logLevelFilter",
            "level"   : "ERROR",
            "appender": {
                "type"    : "file",
                "filename": "cpsadmin-pm2-log/errors.log"
            }
        },
        {
            "type"                : 'dateFile',
            "filename"            : 'cpsadmin-pm2-log/log.log',
            "pattern"             : ".yyyy-MM-dd",
            "maxLogSize"          : 1024,
            "alwaysIncludePattern": true,
            "backups"             : 4
        }
    ]
}


//worker
exports._worker_config = {
    //"replaceConsole": true,   //替换console.log
    "appenders"     : [
        {
            "type"      : "file",
            "filename"  : "cpsadmin-pm2-log/app.log",
            "maxLogSize": 2048000,
            "numBackups": 3
        }, {
            "type"    : "logLevelFilter",
            "level"   : "ERROR",
            "appender": {
                "type"    : "file",
                "filename": "cpsadmin-pm2-log/errors.log"
            }
        }, {
            "type"                : 'dateFile',
            "filename"            : 'cpsadmin-pm2-log/log.log',
            "pattern"             : ".yyyy-MM-dd",
            "maxLogSize"          : 1024,
            "alwaysIncludePattern": true,
            "backups"             : 4
        }
    ]
}